package com.xin.usermanagebackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xin.usermanagebackend.model.dto.user.UserUpdateRequest;
import com.xin.usermanagebackend.model.entity.User;
import com.xin.usermanagebackend.model.vo.UserVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 鑫
 * @description 针对表【user】的数据库操作Service
 * @createDate 2023-04-25 10:53:35
 */
public interface UserService extends IService<User> {
    public long userRegister(String userAccount, String userPassword, String checkPassword);

    public UserVo userLonin(String userAccount, String userPassword, HttpServletRequest httpServletRequest);

    public Integer userLogout(HttpServletRequest httpServletRequest);

    public List<UserVo> searchUserByTags(List<String> tags);

    public Integer update(UserUpdateRequest userUpdateRequest);
}
